package com.example.sqltest.service.impl;

import com.example.sqltest.pojo.AgentUserLog;
import com.example.sqltest.repository.AgentUserLogRepository;
import com.example.sqltest.service.AgentUserLogService;
import com.example.sqltest.vo.AgentUserLogVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: dangwen
 * @createDate: 2020/12/2
 */
@Service
public class AgentUserLogServiceImpl implements AgentUserLogService {
    @Resource
    private AgentUserLogRepository agentUserLogRepository;
    @Override
    public void save(AgentUserLog agentUserLog) {
        agentUserLogRepository.save(agentUserLog);
    }

    @Override
    public List<AgentUserLogVo> findAgentUserLogVoList(String nickName){
        return agentUserLogRepository.findAgentUserLogVoList(nickName);
    }

    @Override
    public List<AgentUserLog> findAgentUserLogList(String nickName) {
//        agentUserLogRepository.findByNickName(nickName);
        return null;
    }
}
